﻿@using Fyp.Models;

@{
    ViewBag.Title = "ProjectList";
}

@{
    Layout = "~/Shared/_layoutPage.cshtml";
    var PageTitle = "SearchProject";

    var data = (List<Project>)ViewData["data"];

 }
   
@section title
{
    @PageTitle
}
   
@*<style>
.table
{
      border: solid 2px #bbbbbb;
      border-collapse: collapse;
      padding: 2px;
}*@

<style>
table, td, th
{
border:1px solid green;
padding:2px;
}
th
{
background-color:green;
color:white;
padding:2px;
}
</style>

 @using (Html.BeginForm("SearchProject", "SearchProject", FormMethod.Get, new { @class = "background" }))
 { 
     <strong>
            <div id="content" style="margin-left: 98px;margin-bottom: -1px;">
                 <h2 style="text-align: center;">Search Project</h2>                
             </div>
    </strong>
    
    <table class = "table" style=" margin-left: 116px; margin-right: 139px;">
     <thead>
           <tr>
               <th class="table">Project Title</th>
               <th class="table">Project Advisor</th>
               <th class="table">Project description</th>
               <th class="table">Dev_Technology</th>
               <th class="table">Type</th>
               <th class="table">Plateform</th>
               
               <th class="table">Status</th>
              
           </tr>
       </thead>
       <tbody> 
       @foreach (var row in data)
       {
           <tr>
                   <td class="table">@row.Title</td>
                   <td class="table">@row.AdvisorName</td>
                   <td class="table">@row.Description</td>
                   <td class="table">@row.Dev_Technology</td>
                   <td class="table">@row.Type</td>
                   <td class="table">@row.Plateform</td>
                   <td class="table">@row.Status</td>
            </tr>
           
       }
        </tbody>
    </table>        
}
            